Jump to content

Recommended Posts

Well, looking in the preparedfoods.lua, the taffy recipe shows as this:

 

    taffy =
    {
        test = function(cooker, names, tags) return tags.sweetener and tags.sweetener >= 3 and not tags.meat end,
        priority = 10,
        foodtype = "VEGGIE",
        health = -TUNING.HEALING_SMALL,
        hunger = TUNING.CALORIES_SMALL*2,
        perishtime = TUNING.PERISH_SLOW,
        sanity = TUNING.SANITY_MED,
        cooktime = 2,
    },

 

(bold is mine)  I'd imagine removing that "-" from before the TUNING.HEALING_SMALL might do the trick?

I didn't know i had to change that, oops!

What should I change it to? just her name or something specific?

van

 

And make sure you download Matt's build renamer found here: http://forums.kleientertainment.com/files/go/c5b58baaddb578e700c23ae2053932be/matts-tools

 

to rename the build. Don't actually click "rename" on it and change it, or else it won't work.

 

Add to the modmain;

 

AddPrefabPostInit("taffy", function(inst)if GetPlayer().prefab == "CHARACTER NAME" then       health = DESIRED AMOUNTendend)

That *should* work. Does for all the meats and veggies.

 

I get an error message saying GetPlayer is a nil value. :( Did I paste it wrong?

I probably sound pretty dumb, huh?

I get an error message saying GetPlayer is a nil value. :( Did I paste it wrong?

I probably sound pretty dumb, huh?

 

Did you make "CHARACTER" NAME Van? Also, I got the thing wrong.

 

It's not health = DESIRED AMOUNT, it's:

 

    inst.components.edible.healthvalue = DESIRED AMOUNT

Did you make "CHARACTER" NAME Van? Also, I got the thing wrong.

 

It's not health = DESIRED AMOUNT, it's:

 

    inst.components.edible.healthvalue = DESIRED AMOUNT

Yup, I did.

It's really weird - When I start a new game I hear the audio for it (ie Maxwell speaking etc) but the screen shows an error message

Most of the images are placeholders by the way

Alright, got it.

 

This is what a section of your modmain.lua looks like:

GLOBAL.STRINGS.CHARACTERS.VAN.DESCRIBE.-- Let the game know Wod is a male, for proper pronouns during the end-game sequence.-- Possible genders here are MALE, FEMALE, or ROBOTtable.insert(GLOBAL.CHARACTER_GENDERS.FEMALE, "van")

And this is what it SHOULD look like:

GLOBAL.STRINGS.CHARACTERS.VAN.DESCRIBE.GetPlayer = GLOBAL.GetPlayer-- Let the game know Wod is a male, for proper pronouns during the end-game sequence.-- Possible genders here are MALE, FEMALE, or ROBOTtable.insert(GLOBAL.CHARACTER_GENDERS.FEMALE, "van")

After fixing that, it's working fine for me.

Now, to make her able to eat taffy, add (almost, you can set the health value to what you want) exactly this:

AddPrefabPostInit("taffy", function(inst)if GetPlayer().prefab == "van" then    inst.components.edible.healthvalue = TUNING.HEALING_TINYendend)

Around just after the "assets" part of the modmain.

Edited by Mr. Tiddles

 

Alright, got it.

 

This is what a section of your modmain.lua looks like:

GLOBAL.STRINGS.CHARACTERS.VAN.DESCRIBE.-- Let the game know Wod is a male, for proper pronouns during the end-game sequence.-- Possible genders here are MALE, FEMALE, or ROBOTtable.insert(GLOBAL.CHARACTER_GENDERS.FEMALE, "van")

And this is what it SHOULD look like:

GLOBAL.STRINGS.CHARACTERS.VAN.DESCRIBE.GetPlayer = GLOBAL.GetPlayer-- Let the game know Wod is a male, for proper pronouns during the end-game sequence.-- Possible genders here are MALE, FEMALE, or ROBOTtable.insert(GLOBAL.CHARACTER_GENDERS.FEMALE, "van")

After fixing that, it's working fine for me.

Now, to make her able to eat taffy, add (almost, you can set the health value to what you want) exactly this:

AddPrefabPostInit("taffy", function(inst)if GetPlayer().prefab == "van" then    inst.components.edible.healthvalue = TUNING.HEALING_TINYendend)

Around just after the "assets" part of the modmain.

 

I'm really sorry for still being a bother.. But now she's not showing up on the character select.

I'm really sorry for still being a bother.. But now she's not showing up on the character select.

I got it working fine. Here, you an take this if you want. Maybe read the modmain to see what/if you've made a mistake.

 

And might I suggest making the lines a bit thicker? Would fit in a bit better.

 

Van_working.zip

I got it working fine. Here, you an take this if you want. Maybe read the modmain to see what/if you've made a mistake.

 

And might I suggest making the lines a bit thicker? Would fit in a bit better.

 

attachicon.gifVan_working.zip

Thank you!!

And yes, I'll keep that in mind when I eventually redo her sprite sheet :)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...